<div data-page="form-create" class="page navbar-through no-toolbar">

	<div class="navbar">
		<div class="navbar-inner">
			<div class="left">
				<a href="#" class="link back icon-only"><i class="ti-arrow-circle-left"></i></a>
			</div>
			<div class="center">填写报表</div>
			<div class="right"></div>
		</div>
	</div>
	
	<div class="page-content">
		
		<form class="external" before-submit="uploadFormImages" >
		
		<input type="hidden" name="owner" value="<%= req.session.user.userid%>">
		<input type="hidden" name="lastChecker" value="<%= req.session.user.userid%>">
		<!-- <input type="hidden" name="state" value="0"> -->
		<input type="hidden" name="type" value="<%= formType.id%>">
		
		<div class="content-block-title">基本信息</div>
		<div class="list-block">
			<ul>
				<li>
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title label">报表名称</div>
							<div class="item-input">
								<input type="text" name="name" value="<%= formType.name%> <%= sails.formatShortDate(new Date())%>">
							</div>
						</div>
					</div>
				</li>
				<li>
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">报表类型</div>
							<div class="item-after">
								<%= formType.name%>
							</div>
						</div>
					</div>
				</li>
			</ul>
		</div>
		
		<div class="content-block-title">属性信息</div>
		<div class="list-block" id="div-form-props">
			<ul>
				<% formType.props.forEach(function(prop){ %>
				<li>
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title label">
								<%=prop.name%>
								<input type="hidden" name="propvals[][prop]" value="<%=prop.id%>" validate="<%= prop.validator%>">
							</div>
							<div class="item-input">
								<input type="text" name="propvals[][value]">
							</div>
						</div>
					</div>
				</li>
				<% }) %>
				
			</ul>
		</div>
		
		<div class="content-block-title">附件信息</div>
		<div class="content-block">
			<div class="row wx-image-selector">
				<div class="col-33"><a href="#"><img></a></div>
				<div class="col-33"><a href="#"><img></a></div>
				<div class="col-33"><a href="#"><img></a></div>
			</div>
		</div>
		
		<div class="content-block">
			<p>
				<a api-path="/api/form" cb-path="/form/list" href="#" class="button button-big button-fill color-cyan sails-btn-submit">保存</a>
			</p>
		</div>
		
		</form>

	</div>
</div>
